{% extends "learing_logs/base.html" %}

{% load bootstrap3 %}

{% block header %}
    <h4>添加你的新话题</h4>
{% endblock header %}

{% block content %}
    <!-- 渲染表单 -->
    
    <form action="{% url 'learing_logs:new_topic' %}" method="post" >
        {% csrf_token %}
        {% bootstrap_form form %} <!-- 以段落的方式显示表单 -->
        {% buttons %}
            <button name="submit" class="btn btn-primary" >添加话题</button>
        {% endbuttons %}
        
    </form>

{% endblock content %}